using System;
using System.Diagnostics;
namespace AppToolKit.Business.Batch
{
	public class BatchProcessorTemplate : IBatchProcessor
	{
		private ProcessDelegate process_;
		public BatchProcessorTemplate(ProcessDelegate process)
		{
			Debug.Assert(process != null);
			this.process_ = process;
		}
		public ProcessResult OnProcess(object o, object context)
		{
			return this.process_(o, context);
		}
	}
}
